package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class ScorePageVo {

    /**
     * 成绩id
     */
    private Integer scoreId;

    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 学生分数
     */
    private Integer score;
    /**
     *
     * */
    private Integer subjectId;
    /**
     * 页面大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer page;

    @Override
    public String toString() {
        return "ScorePageVo{" +
                "scoreId=" + scoreId +
                ", studentId=" + studentId +
                ", score=" + score +
                ", pageSize=" + pageSize +
                ", page=" + page +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ScorePageVo that = (ScorePageVo) o;
        return Objects.equals(scoreId, that.scoreId) && Objects.equals(studentId, that.studentId) && Objects.equals(score, that.score) && Objects.equals(pageSize, that.pageSize) && Objects.equals(page, that.page);
    }

    @Override
    public int hashCode() {
        return Objects.hash(scoreId, studentId, score, pageSize, page);
    }
}
